package top.littlejiang.onlinexam;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import top.littlejiang.onlinexam.entity.OlexamUser;
import top.littlejiang.onlinexam.service.OlexamUserService;

/**
 * @author: chen
 * @date: 2021/2/2 11:40
 * @Description
 */
@RunWith(SpringRunner.class)
@SpringBootTest
public class test {
    @Autowired
    OlexamUserService userService;

    @Test
    public void getOne(){
        QueryWrapper wrapper = new QueryWrapper();
        wrapper.eq("id",2);
        OlexamUser one = userService.getOne(wrapper);
        return;
    }
}
